// pages/productDetails/details.js
const app = getApp()
var http = require('../../utils/server.js')
var util = require('../../utils/util.js')

Page({
  data: {

  },
  onLoad: function (options) {
    var pages = getCurrentPages();
    var prevPage = pages[pages.length - 2]; //上一个页面（父页面）
    this.setData({ data: prevPage.data.data.info });
  },
})